package com.itwjs.pojo;

/**
 * ClassName:User
 * Package:com.itwjs.pojo
 * Description:
 *
 * @Author 王久顺
 * @Create 2024/9/22 23:58
 * @Version 1.0
 */
/*实体类的属性名与表中的字段名一一对应*/
public class User {
    private Integer id;     //id(用户id，主键自增)
    private String username;//用户名
    private Integer age;    //用户年龄

    public User() {
    }

    public User(Integer id, String username, Integer age) {
        this.id = id;
        this.username = username;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", age=" + age +
                '}';
    }
}
